package com.wendyxie.sproutup.enum

enum class ScoreStatusEnum(val value: String) {
    CREATE("CREATE"),
    COLLECT("COLLECT"),
    DELETE("DELETE");

    companion object {
        fun fromString(value: String): ScoreStatusEnum {
            return when (value) {
                "CREATE" -> CREATE
                "COLLECT" -> COLLECT
                "DELETE" -> DELETE
                else -> throw IllegalArgumentException("Invalid value: $value")
            }
        }
    }
}
